<?php
use App\Utils;
?>
@extends('layouts.master3')
@section('css')
<link rel="stylesheet" href="/css/edit/style.css">
<link rel="stylesheet" href="/css/edit/editormd.css">
<style>
			body{padding-bottom:0;}
			#layout{
				width: 1200px;
				margin: 0 auto;
			}
			input.btn{
				margin:20px 60px ;
			}
		</style>

@endsection
@section('content') 
<div class="container">
    {!! Form::open(['url'=>'/task/'.Utils::id2url($task->id).'/contribute']) !!}

	<div class="hero-unit" style="margin-top:10px;width=1200px">
		<h1 style="font-size:40px;">{{$task->title}} <small>学习资料编辑</small></h1>
		<hr/>
</div>
<input name="cid" type="hidden" value="{{$study->id or '0'}}" id="cid">
    <div id="test-editormd">                
    <textarea name="text" style="display:none;">{{$study->content  or ''}}</textarea>
    </div>
				<input class="btn btn-default" type="submit" value="保存" style="float:left">


    {!! Form::close() !!}
</div>
<br>
<br>
<br>
<br>

@stop
@section("js")
<script src="/js/editormd.js"></script>
 <script type="text/javascript">
            var testEditor;
            $(function() {
                editormd.methodOne = function() {
                };
                
                testEditor = editormd("test-editormd", {
                    width  : "90%",
                    height : 720,
                    path   : '/lib/',
                    onload : function() {
                    }
                });
                
                editormd.methodOne();
            });
        </script>
@stop
